package com.qf.generator.Controller;

import com.qf.generator.Pojo.OrderVO;
import com.qf.generator.Utils.R;
import com.qf.generator.service.TbOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private TbOrderService tbOrderService;
    @RequestMapping("/getOrderWithUserById")
    public R getOrderWithUserById(Integer id){
        OrderVO orderVO = tbOrderService.getOrderWithUserById(id);
        return R.ok(orderVO);
    }
}
